package com.faithbj.common.model.compare;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.faithbj.common.model.BaseEntity;

/**
 * 比对发送返回情况记录表
 * @author m
 * @date   2012-06-15
 */
@Entity
@Table(name = "compare_record")
public class CompareRecord extends BaseEntity {

    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;

    /** 申请编号=受理编号 */
    @Column(name = "apply_num", length = 40, nullable = false)
    private String applyNum;

    /** 批次号 */
    @Column(name = "batch_num", length = 40, nullable = false)
    private String batchNum;

    /** 受理时间 */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "accept_time", nullable = false)
    private Date acceptTime;

    /** 关联的区域Id */
    @Column(name = "regin_id", nullable = false)
    private String regionId;

    /** 本家庭主申请人的身份证号码 **/
    @Column(name = "main_applicant_id_num", nullable = false)
    private String mainApplicantIdNum;

    /** 本申请的所有家庭成员人数 */
    @Column(name = "member_num", length = 2, nullable = false)
    private Integer memberNum;

    /**
     * 部委类型：1.房产委2社会保险委3税务委4人口管理机构委办5工商行政管理机构6公积金管理机构
     */
    @Column(name = "type", length = 2, nullable = false)
    private String type;

    /** 已发送人数 */
    @Column(name = "send_num", length = 2, nullable = false)
    private Integer sendNum;

    /** 已返回人数 */
    @Column(name = "recv_num", length = 2, nullable = false)
    private Integer recvNum;

    public CompareRecord() {
    }

    public CompareRecord(String applyNum, String batchNum, Date acceptTime, String regionId, String mainApplicantIdNum,
            Integer memberNum, String type, Integer sendNum, Integer recvNum) {
        this.applyNum = applyNum;
        this.batchNum = batchNum;
        this.acceptTime = acceptTime;
        this.regionId = regionId;
        this.mainApplicantIdNum = mainApplicantIdNum;
        this.memberNum = memberNum;
        this.type = type;
        this.sendNum = sendNum;
        this.recvNum = recvNum;
    }

    public String getApplyNum() {
        return applyNum;
    }

    public void setApplyNum(String applyNum) {
        this.applyNum = applyNum;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getMainApplicantIdNum() {
        return mainApplicantIdNum;
    }

    public void setMainApplicantIdNum(String mainApplicantIdNum) {
        this.mainApplicantIdNum = mainApplicantIdNum;
    }

    public Integer getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(Integer memberNum) {
        this.memberNum = memberNum;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSendNum() {
        return sendNum;
    }

    public void setSendNum(Integer sendNum) {
        this.sendNum = sendNum;
    }

    public Integer getRecvNum() {
        return recvNum;
    }

    public void setRecvNum(Integer recvNum) {
        this.recvNum = recvNum;
    }

}
